package cn.ylz.ylmall.content.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class CommentListItemVO {
    private Long id;
    private String userName; //用户名
    private String avatar; //用户头像
    private String comment; //评论内容
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone = "Asia/Shanghai")
    private Date createTime; //评论时间
    private Integer pid; //父评论id
    private List<CommentListItemVO> children; //子评论
}
